* {
  padding: 0;
  left: 0;
}
.box {
  position: relative;
  width: 200px;
  height: 80px;
  background-color: aqua;
  overflow: hidden;
}
.box1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: pink;
}
.bar {
  position: relative;
  width: 200px;
  height: 10px;
  overflow: hidden;
}
.bar1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: red;
}